// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_SALES_QU_ITEM
// * CreateDate    : 2014-06-05 18:30:37
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:37
// * LastChanger   : 2014-06-05 18:30:37
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class SalesQuItemTable : TableInfo
    {
		public const string C_TableName = "SALES_QU_ITEM";
		
		public const string C_ID = "ID";
		public const string C_QU_ID = "QU_ID";
		public const string C_QU_NO = "QU_NO";
		public const string C_CONTACT_USER = "CONTACT_USER";
		public const string C_MATERIAL_ID = "MATERIAL_ID";
		public const string C_MATERIAL_NAME = "MATERIAL_NAME";
		public const string C_MATERIAL_CODE = "MATERIAL_CODE";
		public const string C_PRODUCT_SPEC = "PRODUCT_SPEC";
		public const string C_QTY = "QTY";
		public const string C_UNIT = "UNIT";
		public const string C_PRICE = "PRICE";
		public const string C_TAX_RATE = "TAX_RATE";
		public const string C_IS_TAX = "IS_TAX";
		public const string C_SUB_TOTAL = "SUB_TOTAL";
		public const string C_MAX_PRICE = "MAX_PRICE";
		public const string C_MIN_PRICE = "MIN_PRICE";
		public const string C_MATERIAL = "MATERIAL";
		public const string C_DIAMETER_OUT = "DIAMETER_OUT";
		public const string C_DIAMETER_IN = "DIAMETER_IN";
		public const string C_LENGTH = "LENGTH";
		public const string C_REMARK = "REMARK";
		
		public SalesQuItemTable()
        {
            _tableName = "SALES_QU_ITEM";
        }
		
		protected static SalesQuItemTable _current;
        public static SalesQuItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new SalesQuItemTable();

            _current.Add(C_ID, new ColumnInfo(C_ID,"Id", true, typeof(string)));
            _current.Add(C_QU_ID, new ColumnInfo(C_QU_ID,"QuId", false, typeof(string)));
            _current.Add(C_QU_NO, new ColumnInfo(C_QU_NO,"QuNo", false, typeof(string)));
            _current.Add(C_CONTACT_USER, new ColumnInfo(C_CONTACT_USER,"ContactUser", false, typeof(string)));
            _current.Add(C_MATERIAL_ID, new ColumnInfo(C_MATERIAL_ID,"MaterialId", false, typeof(string)));
            _current.Add(C_MATERIAL_NAME, new ColumnInfo(C_MATERIAL_NAME,"MaterialName", false, typeof(string)));
            _current.Add(C_MATERIAL_CODE, new ColumnInfo(C_MATERIAL_CODE,"MaterialCode", false, typeof(string)));
            _current.Add(C_PRODUCT_SPEC, new ColumnInfo(C_PRODUCT_SPEC,"ProductSpec", false, typeof(string)));
            _current.Add(C_QTY, new ColumnInfo(C_QTY,"Qty", false, typeof(decimal)));
            _current.Add(C_UNIT, new ColumnInfo(C_UNIT,"Unit", false, typeof(string)));
            _current.Add(C_PRICE, new ColumnInfo(C_PRICE,"Price", false, typeof(decimal)));
            _current.Add(C_TAX_RATE, new ColumnInfo(C_TAX_RATE,"TaxRate", false, typeof(decimal)));
            _current.Add(C_IS_TAX, new ColumnInfo(C_IS_TAX,"IsTax", false, typeof(int)));
            _current.Add(C_SUB_TOTAL, new ColumnInfo(C_SUB_TOTAL,"SubTotal", false, typeof(decimal)));
            _current.Add(C_MAX_PRICE, new ColumnInfo(C_MAX_PRICE,"MaxPrice", false, typeof(decimal)));
            _current.Add(C_MIN_PRICE, new ColumnInfo(C_MIN_PRICE,"MinPrice", false, typeof(decimal)));
            _current.Add(C_MATERIAL, new ColumnInfo(C_MATERIAL,"Material", false, typeof(string)));
            _current.Add(C_DIAMETER_OUT, new ColumnInfo(C_DIAMETER_OUT,"DiameterOut", false, typeof(decimal)));
            _current.Add(C_DIAMETER_IN, new ColumnInfo(C_DIAMETER_IN,"DiameterIn", false, typeof(decimal)));
            _current.Add(C_LENGTH, new ColumnInfo(C_LENGTH,"Length", false, typeof(decimal)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
			
		}
		
		public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }
		
		public ColumnInfo QU_ID
        {
            get { return this[C_QU_ID]; }
        }
		
		public ColumnInfo QU_NO
        {
            get { return this[C_QU_NO]; }
        }
		
		public ColumnInfo CONTACT_USER
        {
            get { return this[C_CONTACT_USER]; }
        }
		
		public ColumnInfo MATERIAL_ID
        {
            get { return this[C_MATERIAL_ID]; }
        }
		
		public ColumnInfo MATERIAL_NAME
        {
            get { return this[C_MATERIAL_NAME]; }
        }
		
		public ColumnInfo MATERIAL_CODE
        {
            get { return this[C_MATERIAL_CODE]; }
        }
		
		public ColumnInfo PRODUCT_SPEC
        {
            get { return this[C_PRODUCT_SPEC]; }
        }
		
		public ColumnInfo QTY
        {
            get { return this[C_QTY]; }
        }
		
		public ColumnInfo UNIT
        {
            get { return this[C_UNIT]; }
        }
		
		public ColumnInfo PRICE
        {
            get { return this[C_PRICE]; }
        }
		
		public ColumnInfo TAX_RATE
        {
            get { return this[C_TAX_RATE]; }
        }
		
		public ColumnInfo IS_TAX
        {
            get { return this[C_IS_TAX]; }
        }
		
		public ColumnInfo SUB_TOTAL
        {
            get { return this[C_SUB_TOTAL]; }
        }
		
		public ColumnInfo MAX_PRICE
        {
            get { return this[C_MAX_PRICE]; }
        }
		
		public ColumnInfo MIN_PRICE
        {
            get { return this[C_MIN_PRICE]; }
        }
		
		public ColumnInfo MATERIAL
        {
            get { return this[C_MATERIAL]; }
        }
		
		public ColumnInfo DIAMETER_OUT
        {
            get { return this[C_DIAMETER_OUT]; }
        }
		
		public ColumnInfo DIAMETER_IN
        {
            get { return this[C_DIAMETER_IN]; }
        }
		
		public ColumnInfo LENGTH
        {
            get { return this[C_LENGTH]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		
		
	}
}

